/* 
  1，导入react和react-dom
  2.通过react的api创建react元素,虚拟dom
  3.把react元素渲染到页面中
*/
import React from 'react'
import ReactDOM from 'react-dom'

const element = React.createElement(
  'ul',
  { className: 'list'},
  [
    React.createElement('li',null,'香蕉'),
    React.createElement('li',null,'苹果'),
    React.createElement('li',null,'梨子'),
  ]
)
// console.log(element);
ReactDOM.render(element, document.getElementById('root'))